import React from 'react';
import ReactDOM from 'react-dom'; 
import {createStore,applyMiddleware,compose } from "redux";
import { Provider } from "react-redux";
import  reducer from "./reducers";
import { createLogger } from 'redux-logger'
import thunk from 'redux-thunk'
 
import App from "./componnet/App";


const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

const store = createStore(reducer,composeEnhancers(applyMiddleware(thunk,createLogger())))
ReactDOM.render(
    <Provider store={store}>
        <App />
    </Provider>,

    document.getElementById('root')
);

